#pragma config(Sensor, dgtl1,  rightEncoder,   sensorQuadEncoder)
#pragma config(Sensor, dgtl3,  leftEncoder,    sensorQuadEncoder)
#pragma config(Sensor, dgtl5,  sonar,          sensorSONAR_cm)
#pragma config(Sensor, dgtl7,  rightTouch,     sensorTouch)
#pragma config(Sensor, dgtl8,  leftTouch,      sensorTouch)
#pragma config(Sensor, dgtl9,  bumper,         sensorTouch)
#pragma config(Motor,  port2,           rightMotor,    tmotorVex269, openLoop)
#pragma config(Motor,  port3,           leftMotor,     tmotorVex269, openLoop)
#pragma config(Motor,  port4,           servo,         tmotorServoStandard, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

void test(){
  motor[servo]=127;
}

task main(){
motor[servo]=-50;
wait1Msec(1000);
int x = 10;
for(int lc; lc<12; lc++){
 motor[servo]=x;
 x=x+(10*lc);
}
wait1Msec(1000);
motor[servo]=-127;
wait1Msec(1000);
motor[servo]=-50;
}

